:root {
    --background-color: #2c3e50;
    --border-color: #7591AD;
    --text-color: #34495e;
    --color1: #EC3E27;
    --color2: #fd79a8;
    --color3: #0984e3;
    --color4: #00b894;
    --color5: #fdcb6e;
    --color6: #e056fd;
    --color7: #F97F51;
    --color8: #BDC581;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif, Arial, 'Microsoft Yahei';
}

.channel {
    position: absolute;
    width: 80%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -200px);
    font-size: 30px;
    font-weight: bold;
    color: #fff;
}

.container {
    position: relative;
    width: 40vh;
    height: 40vh;
    /* background-color: var(--color1); */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: animate_container 2s linear 1 forwards;
}

@keyframes animate_container {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loader {
    position: absolute;
    width: 30vh;
    height: 30vh;
    top: 0;
    /* background-color: var(--color2); */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: animate_loader 3s linear infinite;
}

@keyframes animate_loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.petal {
    position: absolute;
    width: 30%;
    height: 15%;
    /* background-color: var(--color3); */
    border: .5vh solid var(--color6);
    box-shadow: 0 0 10vh var(--color6);
    border-radius: 0 10vh 0 10vh;
    transform: rotate(calc(var(--i) * 45deg)) translateY(13vh);
    animation: animate_petal 1.6s linear infinite;
    animation-delay: calc(var(--i) * 200ms);
}

@keyframes animate_petal {
    0% {
        border: .5vh solid var(--color6);
        box-shadow: 0 0 10vh var(--color6);
    }
    50% {
        border: .5vh solid var(--color8);
        box-shadow: 0 0 10vh var(--color8);
    }
    100% {
        border: .5vh solid var(--color6);
        box-shadow: 0 0 10vh var(--color6);
    }
}

.progress {
    position: absolute;
    width: 30vh;
    height: 1vh;
    background-color: var(--color7);
    bottom: 0;
    border-radius: .5vh;
    overflow: hidden;
}

.progress::after {
    position: absolute;
    content: '';
    width: inherit;
    height: inherit;
    border-radius: inherit;
    background-color: #fff;
    opacity: 0.6;
    left: -100%;
    animation: animate_progress 8s ease-in-out 1 1.5s forwards;
}

@keyframes animate_progress {
    0% {
        left: -100%;
    }
    100% {
        left: 0%;
    }
}